/* vue */
import { defineComponent } from "vue";
/* mixin */
import VersionControlBaseMixin from '@src/mixins/versionControlMixin/base';
/* version linkc */
import {
  isShowLinkCShop,
  isShowLinkCMultiLanguageList,
  isShowLinkCOrderList,
  isShowLinkCModule,
  isShowLinkCAddressList
} from '@shb-lib/version'

export default defineComponent({
  name: "version-control-linkc-mixin",
  mixins: [VersionControlBaseMixin],
  computed: {
    /** 
     * @description 自助门户模块 版本控制
    */
    linkcVersionControl(): Record<string, boolean> {
      return {
        isShowLinkCShop: isShowLinkCShop(this._versionControlMap),
        isShowLinkCMultiLanguageList: isShowLinkCMultiLanguageList(this._versionControlMap),
        isShowLinkCModule: isShowLinkCModule(this._versionControlMap),
        isShowLinkCOrderList: isShowLinkCOrderList(this._versionControlMap),
        isShowLinkCAddressList: isShowLinkCAddressList(this._versionControlMap)
      }
    },
    _isShowLinkCShop(): boolean {
      return this.linkcVersionControl.isShowLinkCShop
    },
    _isShowLinkCMultiLanguageList(): boolean {
      return this.linkcVersionControl.isShowLinkCMultiLanguageList
    },
    _isShowLinkCModule(): boolean {
      return this.linkcVersionControl.isShowLinkCModule
    },
    _isShowLinkCOrderList(): boolean {
      return this.linkcVersionControl.isShowLinkCOrderList
    },
    _isShowLinkCAddressList(): boolean {
      return this.linkcVersionControl.isShowLinkCAddressList
    }
  }
})
